package com.manage.config.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.manage.base.dao.impl.BaseDaoImpl;
import com.manage.config.dao.IConfigDao;
import com.manage.config.model.Keyvalue;
@Repository("configDao")
public class ConfigDaoImpl extends BaseDaoImpl<Keyvalue>implements IConfigDao {

	@Override
	public List<Keyvalue> selectKeyValueList() {
		return getSqlSession().selectList("ConfigMapper.selectKeyValueList");
	}
	
	@Override
	public int selectHomePageTotalCount() {
		return getSqlSession().selectOne("ConfigMapper.selectHomePageTotalCount");
	}

	@Override
	public int selectHeadLineTotalCount() {
		return getSqlSession().selectOne("ConfigMapper.selectHeadLineTotalCount");
	}

	

}
